<?php
	require_once( 'core_DataBaseConnect.php' );
	require_once( 'core_Response.php' );
	require_once( 'core_ErrorCode.php' );
	require_once( 'dao_MemberDAO.php' );
	require_once( '_configs.php' );
	
	function func( $con, $post, $returnType )
	{
		$id 		= $post[ 'id' ];
		
		//1. id 중복 체크
		if( MemberDAO::isSameID( $con, $id ) )
		{
			return Response::FAIL( ErrorCode::ALREADY_ID, '아이디가 중복됩니다.', $returnType, $returnType );
		}
		
		return Response::SUCCESS( null, $returnType );
	}
?>